package com.ruoyi.algorithm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.algorithm.entity.Operator;
import com.ruoyi.algorithm.model.ManufacturerOperatorDDBModel;
import com.ruoyi.algorithm.model.OperatorModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.ruoyi.algorithm.entity.Operator
 */
@Repository(value = "operatorMapper")
public interface OperatorMapper extends BaseMapper<Operator> {
    /**
     * 查询厂商和算子信息，支持根据算子名称
     */
    List<ManufacturerOperatorDDBModel> getManufacturerOperatorDDB(@Param("operatorName") String operatorName);

    /**
     * 查询分页数据
     */
    Page<OperatorModel> listByPage(IPage<OperatorModel> page, @Param("conditionList") List<Map<String, Object>> conditionList, @Param("orderAttr") String orderAttr,
                                   @Param("orderType") String orderType);
}




